/** @type {import('tailwindcss').Config} */
module.exports = {
  darkMode: 'class',
  content: [
    './pages/**/*.{js,ts,jsx,tsx,mdx}',
    './components/**/*.{js,ts,jsx,tsx,mdx}',
    './app/**/*.{js,ts,jsx,tsx,mdx}',
  ],
  theme: {
    extend: {
      backgroundImage: {
        'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
        'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
      },
      typography: (theme) => ({
        DEFAULT: {
          css: {
            fontSize: theme('fontSize.base'),
            lineHeight: theme('lineHeight.relaxed'),
            p: {
              marginBottom: theme('spacing.6'),
              fontSize: theme('fontSize.base'),
              lineHeight: theme('lineHeight.relaxed'),
            },
            'h1, h2, h3, h4': {
              marginBottom: theme('spacing.6'),
            },
            h1: {
              fontSize: theme('fontSize.2xl'),
            },
            h2: {
              fontSize: theme('fontSize.xl'),
            },
            h3: {
              fontSize: theme('fontSize.lg'),
            },
            'ul, ol': {
              marginBottom: theme('spacing.6'),
            },
            li: {
              marginBottom: theme('spacing.2'),
              fontSize: theme('fontSize.base'),
            },
            pre: {
              fontSize: theme('fontSize.sm'),
              padding: theme('spacing.4'),
              marginTop: theme('spacing.6'),
              marginBottom: theme('spacing.6'),
              backgroundColor: theme('colors.gray.100'),
            },
            code: {
              fontSize: theme('fontSize.sm'),
              backgroundColor: theme('colors.gray.100'),
              padding: `${theme('spacing.1')} ${theme('spacing.2')}`,
            },
            a: {
              color: 'inherit',
              '&:hover': {
                color: theme('colors.blue.600')
              }
            },
          },
        },
        lg: {
          css: {
            fontSize: theme('fontSize.lg'),
            p: {
              fontSize: theme('fontSize.lg'),
            },
            h1: {
              fontSize: theme('fontSize.3xl'),
            },
            h2: {
              fontSize: theme('fontSize.2xl'),
            },
            h3: {
              fontSize: theme('fontSize.xl'),
            },
            li: {
              fontSize: theme('fontSize.lg'),
            },
            pre: {
              fontSize: theme('fontSize.base'),
            },
            code: {
              fontSize: theme('fontSize.base'),
            },
          },
        },
      }),
    },
  },
  plugins: [
    require('@tailwindcss/typography'),
    require('tailwind-scrollbar'),
  ],
} 